﻿namespace IBTrader.Indicator.Average
{
    using IBTrader.Charts;

    class MACD : XEMA // NewGroup
    {
        public MACD(Worker worker, double interval = 60) : base(worker, new ChartArgs { Group = 1 }, 12 * interval, 26 * interval)
        {
            emas[1].Hit += (_, line) => OnHit(line, emas[0].Last.Price - emas[1].Last.Price);
        }
    }
}